<!--
Copyright 2017 The Kubernetes Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<md-sidenav md-is-locked-open="$ctrl.isVisible()" class="kd-nav" layout="column">
    <div class="kd-nav-group">
        <kd-nav-item class="kd-nav-group-item" state="{{::$ctrl.states.cluster}}">[[Cluster|Cluster group menu entry.]]</kd-nav-item>
        <kd-nav-item class="kd-nav-item" state="{{::$ctrl.states.namespace}}">[[Namespaces|Namespaces menu entry.]]</kd-nav-item>
        <kd-nav-item class="kd-nav-item" state="{{::$ctrl.states.node}}">[[Nodes|Nodes menu entry.]]</kd-nav-item>
        <kd-nav-item class="kd-nav-item" state="{{::$ctrl.states.persistentVolume}}">[[Persistent Volumes|Persistent
            Volumes menu entry.]]</kd-nav-item>
        <!-- Enabled dynamically if the rbac is enabled in the cluster. -->
        <kd-role-nav states="$ctrl.states"></kd-role-nav>
        <kd-nav-item class="kd-nav-item" state="{{::$ctrl.states.storageClass}}">[[Storage Classes|Storage Classes menu
            entry.]]</kd-nav-item>
    </div>
    <div class="kd-nav-group-divider"></div>
    <kd-namespace-select></kd-namespace-select>
    <div class="kd-nav-group">
        <kd-nav-item class="kd-nav-group-item" state="{{::$ctrl.states.overview}}">[[Overview|All objects group menu
            entry.]]</kd-nav-item>
    </div>
    <div class="kd-nav-group">
        <kd-nav-item class="kd-nav-group-item" state="{{::$ctrl.states.workload}}">[[Workloads|Workloads group menu
            entry.]]</kd-nav-item>
        <kd-nav-item class="kd-nav-item" state="{{::$ctrl.states.cronJob}}">[[Cron Jobs|Cron Jobs menu entry.]]</kd-nav-item>
        <kd-nav-item class="kd-nav-item" state="{{::$ctrl.states.daemonSet}}">[[Daemon Sets|Daemon Sets menu entry.]]</kd-nav-item>
        <kd-nav-item class="kd-nav-item" state="{{::$ctrl.states.deployment}}">[[Deployments|Deployments menu entry.]]</kd-nav-item>
        <kd-nav-item class="kd-nav-item" state="{{::$ctrl.states.job}}">[[Jobs|Jobs menu entry.]]</kd-nav-item>
        <kd-nav-item class="kd-nav-item" state="{{::$ctrl.states.pod}}">[[Pods|Pods menu entry.]]</kd-nav-item>
        <kd-nav-item class="kd-nav-item" state="{{::$ctrl.states.replicaSet}}">[[Replica Sets|Replica Sets entry.]]</kd-nav-item>
        <kd-nav-item class="kd-nav-item" state="{{::$ctrl.states.replicationController}}">[[Replication
            Controllers|Replication Controllers menu entry.]]</kd-nav-item>
        <kd-nav-item class="kd-nav-item" state="{{::$ctrl.states.statefulSet}}">[[Stateful Sets|Stateful Sets menu
            entry.]]</kd-nav-item>
    </div>
    <div class="kd-nav-group">
        <kd-nav-item class="kd-nav-group-item" state="{{::$ctrl.states.discovery}}">[[Discovery and Load
            Balancing|Discovery and Load Balancing group menu entry.]]</kd-nav-item>
        <kd-nav-item class="kd-nav-item" state="{{::$ctrl.states.ingress}}">[[Ingresses|Ingresses menu entry.]]</kd-nav-item>
        <kd-nav-item class="kd-nav-item" state="{{::$ctrl.states.service}}">[[Services|Services menu entry.]]</kd-nav-item>
    </div>
    <div class="kd-nav-group">
        <kd-nav-item class="kd-nav-group-item" state="{{::$ctrl.states.config}}">[[Config and Storage|Config and
            Storage group menu entry.]]</kd-nav-item>
        <kd-nav-item class="kd-nav-item" state="{{::$ctrl.states.configMap}}">[[Config Maps|Config Maps menu entry.]]</kd-nav-item>
        <kd-nav-item class="kd-nav-item" state="{{::$ctrl.states.persistentVolumeClaim}}">[[Persistent Volume
            Claims|Persistent Volume Claims menu entry.]]</kd-nav-item>
        <kd-nav-item class="kd-nav-item" state="{{::$ctrl.states.secret}}">[[Secrets|Secrets menu entry.]]</kd-nav-item>
    </div>

    <div class="kd-nav-group-divider"></div>

    <div class="kd-nav-group">
        <!-- <kd-nav-item class="kd-nav-group-item" state="{{::$ctrl.states.settings}}">[[Settings|Settings page menu entry.]]</kd-nav-item> -->
        <kd-nav-item class="kd-nav-group-item" state="{{::$ctrl.states.about}}">[[About|About page menu entry.]]</kd-nav-item>

        <div class="kd-nav-group-item" ng-repeat="item in $ctrl.navGroup">
            <a class="kd-nav-item-button md-button ng-scope md-ink-ripple" href="{{::item.url}}" target="_blank">{{
                item.title }}</a>
        </div>
    </div>
</md-sidenav>
